#include "stdafx.h"
#include "CXcpObjectThreadSafeAddRefPolicy.h"

#include "IPALThreadingServices.h"

XINT32 CXcpObjectThreadSafeAddRefPolicy::AddRef( XINT32 & RefCount )
{
	return GetPALThreadingServices()->InterlockedIncrement(&RefCount);
}

XINT32 CXcpObjectThreadSafeAddRefPolicy::Release( XINT32 & RefCount )
{
	return GetPALThreadingServices()->InterlockedDecrement(&RefCount);
}
